﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Error.aspx.cs" Inherits="Rob.SampleCode.MyApp.Webforms.Error" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title>Application Error</title>
</head>
<body>
    <form runat="server">
    <div>
        <h3>Application Error</h3>
        <p>Something just happened that we weren't prepared for. The error details have
        been logged and support has been notified so no further action is required. We
        apologize for the inconvenience.</p>
        <p>Click here to return to the home page: <asp:HyperLink ID="lnkHome" runat="server"/></p>
        <p><a id="lnkShowError" href="#showError">Error Details</a></p>
        <pre id="preErrorDetails" runat="server" style="display:none; font-family: Lucida Console; font-size: 10px;">Test text</pre>
    </div>
    </form>

    <script type="text/javascript" src="Scripts/jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#lnkShowError').click(function (e) {
                e.preventDefault();
                $('#preErrorDetails').toggle();
            });
        });
    </script>

</body>
</html>
